package com.lyl.pipeline.autoconfigure;

import com.lyl.pipeline.core.PipelineAop;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @author Mr.Luo
 * @date 2022-07-26 15:24
 * @desc 自动配置
 */
@Slf4j
@Configuration
@EnableConfigurationProperties({PipelineProperties.class})
@Import({PipeNodeHandlerAutoConfigureRegistrar.class})
public class PipelineAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public PipelineAop pipelineAop(){
        return new PipelineAop();
    }

}
